﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ComponentFactory.Krypton.Toolkit;
using WeifenLuo.WinFormsUI.Docking;
namespace XenoStudio
{
    public partial class Messages : DockContent
    {
        public static Messages Active { get; set; }
        public Messages()
        {
            InitializeComponent();
            Active = this;
        }
        public static void LogEngine(string log,object from)
        {
            if (from == null)
            {
                Active.messageViewer1.LogMsg(log, "Unknown");
            }
            else
            {
                Active.messageViewer1.LogMsg(log, from);
            }
        }
        private void messageViewer1_Load(object sender, EventArgs e)
        {

        }
    }
}
